<templete>
	<div class="ipc-toast">
		<div class="tips-container fade-in">
			<p class="text">{{msg}}</p>
		</div>
	</div>
</templete>

<script>
export default{
	name:'ipc-tips',
	data(){
		return{
			msg:'Hello',
			showFlag:true
		}
	}
}


</script>

<style lang="scss" scoped>
.ipc-toast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  .tips-container {
    width: 160px;
    height: 60px;
    line-height: 30px;
    text-align: center;
    border-radius: 13px;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    .text {
      font-size: 15px;
      color: #fff;
    }
  }
}
.fade-in {
  animation-name: fade-in;
  animation-duration: 0.3s;
  animation-fill-mode: both;
}
.fade-out {
  animation-name: fade-out;
  animation-duration: 0.3s;
  animation-fill-mode: both;
}
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fade-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.7);
  }
}
</style>